/*******************************************************************************
* Project: QSAR(Cute Software Architecture) 
*
* Copyright: Copyright(C) 2024 by YuetingBen, All Rights Reserved
*
* File name: CanIfCfg.h
*
* Brief: ;
*
* Author: Yueting.Ben
*
* Module: CANIF
*
* Revision:
* --------------------------------------------------------------------------------
* v0.1: 
* --Yueting.Ben, 2024-02-23 
* --Initial release

**********************************************************************************/
#ifndef CANIFCFG_H
#define CANIFCFG_H

/** HEADER FILES **/
#include "CanIfType.h"
#include "CanIfRte.h"


/** TYPEDEF DEFINITION **/
typedef enum
{
    CANIF_CAN_TYPE_STANDARD = 0x00, /* standard */
    CANIF_CAN_TYPE_EXTENDED            /* extended */
}CANIF_CAN_TYPE_E;

typedef struct
{
    uint32 u32_canId;
    uint8  u8_length;
    CANIF_CAN_TYPE_E e_canType;
}CANIF_PDU_CFG_S;


typedef struct
{
    uint32 canId;
    uint8  length;
} CanIf_TxPduCfgType;


typedef struct
{
    uint32 canId;
    uint8  length;
    PduIdType UpperPduId;
} CanIf_RxPduCfgType;

/** MACRO DEFINITION **/
#define CanIfConf_CanIfTxPduCfg_Pdu_2345634_985 0

/** LOCAL DATA DEFINITION **/
//extern const CANIF_PDU_CFG_S Canif_TxPduCfg[CANIF_TX_INDEX_MAX];
//extern const CANIF_PDU_CFG_S Canif_RxPduCfg[CANIF_RX_INDEX_MAX];

extern const CanIf_TxPduCfgType Canif_TxPduCfg[CANIF_TX_INDEX_MAX];
extern const CanIf_RxPduCfgType Canif_RxPduCfg[CANIF_RX_INDEX_MAX];
extern const PduIndicationFuncType Canif_RxIndicationFuncCfg[CANIF_RX_INDEX_MAX];

#endif
